﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControls_WebNewHead : System.Web.UI.UserControl
{
    public string strZhuce;
    protected void Page_Load(object sender, EventArgs e)
    {
        //Session["LoginUserName"] = "习近平";
        strZhuce = string.Empty;
        try
        {
            if (!string.IsNullOrEmpty(Session["LoginUserName"].ToString()))
            {
                strZhuce = "<span>欢迎：" + Session["LoginUserName"].ToString() + "</span><span style=\"margin-right: 10px; margin-left: 10px;\">|</span><span style=\"cursor: pointer;\" onclick=\"LoginOut();\">退出</span>";
                //strZhuce = "欢迎：" + Session["LoginUserName"].ToString() + "  " + "<a href='javascript:LoginOut()'  class='top_exit'>退出<a>";
                //lb_Register.Text = "欢迎：" + Session["LoginUserName"].ToString()+"<a href=''>退出</a>";
            }
            else
            {
                strZhuce = "<span style=\"cursor: pointer;\" onclick=\"redirectUrl();\">注册</span>";
                //strZhuce = " <a class='top-right-title' href='/isp/isp/projects/sbsm/bsdt/register.jsp'>注册</a>";
            }
        }
        catch
        {
            strZhuce = "<span style=\"cursor: pointer;\" onclick=\"redirectUrl();\">注册</span>";
            //strZhuce = " <a class='top-right-title' href='/isp/isp/projects/sbsm/bsdt/register.jsp'>注册</a>";
        }
    }
}